package com.osdp.auth.feign;

import com.osdp.common.constant.CommonConstant;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Set;

@FeignClient(value = CommonConstant.AUTH_APP_NAME, path = CommonConstant.AUTH_APP_PATH, fallbackFactory = AuthFeignServiceFallbackFactory.class)
public interface AuthFeignService {

    @GetMapping("/auth/token/refresh")
    boolean refresh(@RequestParam("token") String token);

    @GetMapping("/auth/token/verify")
    boolean verify(@RequestParam("token") String token);
}
